<?php
/**
 * SpecsValue
 * Created by Veyron
 * motto:现在的拼搏 为了更好的明天
 * day:  2020/2/9
 * Time: 15:20
 */

namespace app\admin\validate;

use think\Validate;

class SpecsValue extends Validate
{
    protected $rule = [
        'specs_id'   => 'require|integer',
        'name'       => 'require'
    ];
    protected $message = [
        'specs_id.require'  => 'ID不能为空',
        'specs_id.integer'  => 'ID必须是数字',
        'name.require'      => '名称不能为空',
    ];

}
